package com.web.controller;



import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
 
import org.springframework.web.bind.annotation.RestController;

import com.web.model.ResponseData;
import com.web.params.LoginParams;
import com.web.service.UserService;

 


@RestController
@RequestMapping("/login") // 真实的http地址是：/api/home
public class LoginController {
	@Autowired
	private UserService userService;
	@PostMapping
	public ResponseData login(@RequestBody LoginParams params) {
		 ResponseData responseData =userService .login(params);
		return responseData;
	}

}
	
	
	
	
	


